  <% if(type=="received"){ %>
    <% for(var i=0;i<results.length;i++){ %>
    <li class="am-comment am-g">
      <div class="am-u-sm-12 am-u-md-1 am-padding-xs">
        <span class="am-fl"><img src="<% if(results[i].get('fromUser') && results[i].get('toUser').get('avatar')){ %><%= results[i].get('toUser').get('avatar').thumbnailURL(100, 200) %><% }else{ %>/i/default_avatar.png<% } %>" class="am-comment-avatar" /></span>
        <span class="am-show-sm-only am-fl am-padding-left-xs"><% if(results[i].get('toUser')){ %><%= results[i].get('toUser').get('displayName') %><% }else{ %> - <% } %></span>
        <span class="am-show-sm-only am-fr"><font><%= moment(results[i].createdAt).zone(-8).format('YYYY-MM-DD HH:mm:ss') %></font></span>
      </div>
      <div class="am-u-md-2 am-hide-sm-only" ><% if(results[i].get('toUser')){ %><%= results[i].get('toUser').get('displayName') %><% }else{ %> - <% } %><br/><font><%= moment(results[i].createdAt).zone(-8).format('YYYY-MM-DD HH:mm:ss') %></font></div>
      <div class="am-u-sm-12 am-u-md-9"><%= results[i].get('content') %></div>
    </li>
    <% } %>
  <% }else{ %>
    <% for(var i=0;i<results.length;i++){ %>
    <li class="am-comment am-g">
      <div class="am-u-sm-12 am-u-md-1 am-padding-xs">
        <span class="am-fl"><img src="<% if(results[i].get('fromUser') && results[i].get('fromUser').get('avatar')){ %><%= results[i].get('fromUser').get('avatar').thumbnailURL(100, 200) %><% }else{ %>/i/default_avatar.png<% } %>" class="am-comment-avatar" /></span>
        <span class="am-show-sm-only am-fl am-padding-left-xs"><% if(results[i].get('fromUser')){ %><%= results[i].get('fromUser').get('displayName') %><% }else{ %> - <% } %></span>
        <span class="am-show-sm-only am-fr"><font><%= moment(results[i].createdAt).zone(-8).format('YYYY-MM-DD HH:mm:ss') %></font></span>
      </div>
      <div class="am-u-md-2 am-hide-sm-only" ><% if(results[i].get('fromUser')){ %><%= results[i].get('fromUser').get('displayName') %><% }else{ %> - <% } %><br/><font><%= moment(results[i].createdAt).zone(-8).format('YYYY-MM-DD HH:mm:ss') %></font></div>
      <div class="am-u-sm-12 am-u-md-9"><%= results[i].get('content') %></div>
    </li>
    <% } %>
  <% } %>
